﻿@{
    ViewBag.Title = "More_MemLoan";
    Layout = "~/Views/Shared/MasterView.cshtml";
}
<html>
<head>
    <title>
    成功的借款_诚信创投
</title>
    <meta charset="utf-8">
    <meta name="keywords" content="诚信创投,P2P理财,P2P网贷,个人理财,网贷平台" />
    <meta name="description" content="" />
    <meta name="description" content="诚信创投成立于2009年3月，是中国领先的P2P网贷平台，是P2P网贷行业的领跑者。诚信创投以稳健的风控和专业的团队，为投资者提供预期预期年化收益8%-12%的P2P理财服务。已经为100多万注册用户提供了P2P网贷、P2P理财、个人理财等服务项目。" />
    <meta name="baidu-site-verification" content="O8ybvhvPLB" />
    <meta name="baidu-site-verification" content="O8ybvhvPLB" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="~/_files/jquery-1.8.3.min.js"> </script>
    <script type="text/javascript" src="~/_files/jquery.validate.min.js"> </script>
    <script type="text/javascript" src="~/Content/ReceptionView/scripts/legacy/JqueryJson.js"></script>
    <script type="text/javascript" src="~/_files/com.js?t=201412"></script>
    <script type="text/javascript" src="~/_files/jQuery.md5.js"></script>
    <script type="text/javascript" src="~/_files/area.js"></script>
    <script type="text/javascript" src="~/_files/ceng.js?t=201412"></script>
    <script type="text/javascript" src="~/_files/hongling-validate-methods.js"></script>
    <link type="text/css" rel="stylesheet" href="https://style.my089.com/pc/themes/ceng.css?t=20170104">
    <script type="text/javascript" src="~/_files/jPages.min.js"></script>
    <script type="text/javascript" src="~/_files/util.js"></script>
    <link rel="stylesheet" type="text/css" href="https://style.my089.com/pc/themes/util.css" />
    <script type="text/javascript" src="~/Content/ReceptionView/scripts/common/jquery-jtemplates.js"></script>
    <!--[if lte IE 6]>
    <script src="/scripts/legacy/xiala.js" type="text/javascript"></script>
    <![endif]-->
    
</head>
<body>
<div class="content" id="hongman">
<link href="https://style.my089.com/pc/themes/Loan.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/scripts/legacy/com.js"></script>
<style type="text/css">
    .Loan_box dl dd.dd_1 div.txt_tou a{ max-width:200px;_width:200px;}
    .Bid_head dd span{ color:#888;}

    .success dl.Bid_head dd a {
        background: none;
        color: #888;
        float: left;
        height: 22px;
        line-height: 22px;
        margin: 18px 0 0;
        padding-right: 12px;
    }
</style>

<input type="hidden" id="currentHour" name="currentHour" value="2">
<div class="Top_nav">
    <div class="top_nav_cont">
        <ul>
            <li><span class="cur">成功的借款</span></li>
            <li style=" float:right;"><a href="/Invest/Invest_Show" class="font_16">标的投资&gt;&gt;</a></li>
        </ul>
        <div class="clear"></div>
    </div>
</div>
<div class="height"></div>
<div class="LoanSelect">

    <div class="Select_warp">
        <div class="Select_list lf" style=" width:980px;">
            <ul>
                <li><span style=" margin:6px 0;">还款方式：</span>
                    <a id="funding_0" href="javascript:void(0);" class="Current" onclick="A_onclick(0)">全部</a>
                    <a id="funding_1" href="javascript:void(0);" onclick="A_onclick(1)">按月分期</a>
                    <a id="funding_2" href="javascript:void(0);" onclick="A_onclick(2)">按月到期</a>
                    <a id="funding_3" href="javascript:void(0);" onclick="A_onclick(3)">按天到期</a>
                </li>
                @*<li class="ioc">
                    <span style=" margin:6px 0;">标的类型：</span>
                    <a id="loanType" href="javascript:void(0);" class="Current" onclick="clickLoanType('loanType')">全部</a>
                    <a id="loanType_1" href="javascript:void(0);" onclick="clickLoanType('loanType_1',1)"><span class="SubL1" title="信用标"></span></a>
                    <a id="loanType_90" href="javascript:void(0);" onclick="clickLoanType('loanType_90',90)"><span class="SubL90" title="净值标"></span></a>
                  </li>*@
                <li><span style=" margin:6px 0;">标的状态：</span>
                    <a id="subjectStatus_0" class="Current" href="javascript:void(0);" onclick="A_ExamineState(0)">全部</a>
                    <a id="subjectStatus_5"  href="javascript:void(0);" onclick="A_ExamineState(5)" >待还款</a>
                    <a id="subjectStatus_6" href="javascript:void(0);" onclick="A_ExamineState(6)">已还完</a>
                </li>
                @*<li><input type="text" id="kw" name="kw" auckfun="setKeyword();" class="txt_300" value=""><input type="button" onclick="return search();" class="Bid_sou" value="搜 索"></li>*@
            </ul>
        </div>
        <div class="clear"></div>
    </div>
</div>
<div class="Loan_box success">
    <dl class="Bid_head">
        <dd class="dd_5">&nbsp;&nbsp;&nbsp;</dd>
        <dd class="dd_1"><a id="oc_5" href="javascript:void(0);" onclick="sortord('oc_5',5)">借款标题/借款人/初审时间</a></dd>
        <dd class="dd_3"><a id="oc_2"href="javascript:void(0);" onclick="sortord('oc_2',2)">借款金额</a></dd>
        <dd class="dd_2"><a id="oc_3"href="javascript:void(0);" onclick="sortord('oc_3',3)">利率</a></dd>
        <dd class="dd_4"><a id="oc_1"href="javascript:void(0);" onclick="sortord('oc_1',1)">期限/还款方式</a></dd>
        <dd class="dd_6"><a id="oc_4"href="javascript:void(0);" onclick="sortord('oc_4',4)">投标进度</a></dd>
    </dl>
    <div id="noData">
        
    </div>
    <div id="pageResult" ></div>
    <div id="pageNavTool">
       
    </div>
    <div class="clear"></div>
</div>
    <input type="hidden" id="Repayment" name="Repayment"  value="0" />
   
    <input type="text" id="ExamineState" name="ExamineState" value="0" style="display:none" />
<script language="javascript" type="text/javascript">
    $(function () {
       page(1,0,0)
    })
    var n = "";
    var q = "";
    function A_onclick(i)
    {
        if (i == 0) {       
            $("#funding_"+i).addClass("Current");
            $("#funding_1,#funding_2,#funding_3").removeClass("Current");
            $("#Repayment").val(i)
            n = $("#Repayment").val();
            q = $("#ExamineState").val();
            
            page(1,n,q);
        } else if (i == 1) {
          
            $("#funding_" + i).addClass("Current");
            $("#funding_0,#funding_2,#funding_3").removeClass("Current");
            $("#Repayment").val(i)
            n = $("#Repayment").val();
            q = $("#ExamineState").val();
           page(1,n, q);
        }
        else if (i == 2) {
            $("#funding_" + i).addClass("Current");
            $("#funding_0,#funding_1,#funding_3").removeClass("Current");
            $("#Repayment").val(i)
            n = $("#Repayment").val();
            q = $("#ExamineState").val();
            page(1,n, q);
    
        }
        else if (i == 3) {
            $("#funding_" + i).addClass("Current");
            $("#funding_0,#funding_1,#funding_2").removeClass("Current");
            $("#Repayment").val(i)
             n = $("#Repayment").val();
             q = $("#ExamineState").val();
             page(1,n,q);
        }
    }
    function A_ExamineState(i)
    {
        if (i == 5) {
            $("#ExamineState").val(i);
            q = $("#ExamineState").val();
           
            $("#subjectStatus_" + i).addClass("Current");
            $("#subjectStatus_6,#subjectStatus_0").removeClass("Current");
            n = $("#Repayment").val();
            page(1,n, q);
        } else if(i==6) {
            $("#ExamineState").val(i);
            q = $("#ExamineState").val();
            $("#subjectStatus_" + i).addClass("Current");
            $("#subjectStatus_5,#subjectStatus_0").removeClass("Current");
            n = $("#Repayment").val();
            page(1,n, q);
        } else if(i==0)
        {
            $("#ExamineState").val(i);
            q = $("#ExamineState").val();
            $("#subjectStatus_" + i).addClass("Current");
            $("#subjectStatus_6,#subjectStatus_5").removeClass("Current");
            n = $("#Repayment").val();
            page(1,n, q);
        }
    }
    function page(e,pe,n)
    {
        $.ajax({
            type: "Post",
            url: "/MemLoan/MemLoan_Show",
            data: {
                pageindex: e,
                pageSize: 10,
                RepaymentModeId: pe,
                ExamineState:n
            },
            success: function (datas) {
                var arr = new Array();
                var p = new Array();
                for (var i = 0; i < datas.Data.length; i++) {
                    arr.push("<dl class='LoanList'>");
                    arr.push("<dd class='dd_5'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp&nbsp&nbsp</dd>")
                    arr.push("<dd class='dd_1 LoanTitle mar_top_15'>");
                    arr.push("<div class='txt_tou'>");
                    arr.push("<a href='/MemLoan/Show_One?id=" + datas.Data[i].MemLoanId + "' target='_blank'><b title='" + datas.Data[i].Title + "' class='SubL60'></b></a><a href='/MemLoan/Show_One?id=" + datas.Data[i].MemLoanId + "' target='_blank' class='lf'>" + datas.Data[i].Title + "</a>")
                    arr.push(" <div class='clear'></div>");
                    arr.push(" </div>");
                    arr.push("<div class='user_time'>");
                    arr.push("<span class='lf'></span><b class='lf'></b>");
                    arr.push("<div class='clear'></div>");
                    arr.push("</div></dd>");
                    arr.push("<dd class='dd_3 mar_top_18'><span class='number'>"+datas.Data[i].LoanMoney+"</span></dd>");
                    arr.push(" <dd class='dd_2 mar_top_18'><span class='number'>" +datas.Data[i].Annualrate + "<b>%/年</b></span></dd>");
                    arr.push(" <dd class='dd_4 mar_top_18'><span class='number'>" + datas.Data[i].RepaymentModeId + "</span></dd>");
                    arr.push("<dd class='dd_6 mar_top_18'>");
                    arr.push(" <p class='Bar lf'><b style='width:{$T.record.progress}%' class='Bar_1'></b></p><span class='lf'>100%</span>");
                    arr.push(" <div class='clear'></div>");
                    arr.push("</dd></dl>");
                    arr.push("</dd>");
                    arr.push("</dl>");
                }
                $("#noData").html(arr.join(""));
                p.push("<div><a>共" + datas.PageCount + "页&nbsp;第" + datas.PageIndex + "页&nbsp;</a>")
                p.push("<a onclick=\"page(1,"+i+","+n+")\">&nbsp;首页&nbsp;</a>")

                if (datas.PageIndex <= 1) {
                    p.push("<a onclick=\"page(1," + pe + "," + n + ")\">&nbsp;上一页&nbsp;</a>")
                }
                else {
                    p.push("<a onclick=\"page(" + (datas.PageIndex - 1) + "," + pe + "," + n + ")\">&nbsp;上一页&nbsp;</a>")
                }
                for (var i = 0; i < datas.PageCount; i++) {

                    p.push("<a onclick=\"page(" + (i + 1) + "," + pe + "," + n + ")\">&nbsp;" + (i + 1) + "&nbsp;</a>")
                }
                if (datas.PageIndex == datas.PageCount) {
                    p.push("<a onclick=\"page(" + datas.PageIndex + "," + pe + "," + n + ")\">&nbsp;下一页&nbsp;</a>")
                }
                else {
                    p.push("<a onclick=\"page(" + (datas.PageIndex + 1) + "," + pe + "," + n + ")\">&nbsp;下一页&nbsp;</a>")
                }
                p.push(" <a onclick=\"page(" + datas.PageCount + "," + pe + "," + n + ")\">&nbsp;尾页&nbsp;</a></div>")
                $("#pageNavTool").html(p.join(""));
                
            }
        })
    }
</script>

<div class="clear"></div>
</div>
</body>
</html>